int setsock_nonblock(int fd);
void close_sockets(config_info * sample);
void create_tcp_server_socket_for_star(char * ip, int portF, int expected_num_connections, int sids[MAX_RING_NODES]);
int create_tcp_server_socket(const char *ip, int port);
int create_tcp_client_socket(const char *ip, int port);
